package com.ruoyi.energize.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 烟草分类占比报告对象 yancao_category_sale_report
 *
 * @author ruoyi
 * @date 2023-06-01
 */
public class YancaoCategorySaleReport extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自动递增id */
    private Integer autoId;

    /** 分类一级ID */
    @Excel(name = "分类一级ID")
    private Integer categoryId;

    /** 二级分类ID */
    @Excel(name = "二级分类ID")
    private Integer subclassId;

    /** 一级分类名称 */
    @Excel(name = "一级分类名称")
    private String categoryIdName;

    /** 二级分类名称 */
    @Excel(name = "二级分类名称")
    private String subclassIdName;

    /** 销售额 */
    @Excel(name = "销售额")
    private BigDecimal sales;

    /** 销售数量 */
    @Excel(name = "销售数量")
    private Integer salesQuantity;

    /** 利润 */
    @Excel(name = "利润")
    private BigDecimal profit;

    /** 利润率 */
    @Excel(name = "利润率")
    private BigDecimal profitRatio;

    /** 采购价格 */
    @Excel(name = "采购价格")
    private BigDecimal purchasePrice;

    public void setAutoId(Integer autoId)
    {
        this.autoId = autoId;
    }

    public Integer getAutoId()
    {
        return autoId;
    }
    public void setCategoryId(Integer categoryId)
    {
        this.categoryId = categoryId;
    }

    public Integer getCategoryId()
    {
        return categoryId;
    }
    public void setSubclassId(Integer subclassId)
    {
        this.subclassId = subclassId;
    }

    public Integer getSubclassId()
    {
        return subclassId;
    }
    public void setCategoryIdName(String categoryIdName)
    {
        this.categoryIdName = categoryIdName;
    }

    public String getCategoryIdName()
    {
        return categoryIdName;
    }
    public void setSubclassIdName(String subclassIdName)
    {
        this.subclassIdName = subclassIdName;
    }

    public String getSubclassIdName()
    {
        return subclassIdName;
    }
    public void setSales(BigDecimal sales)
    {
        this.sales = sales;
    }

    public BigDecimal getSales()
    {
        return sales;
    }
    public void setSalesQuantity(Integer salesQuantity)
    {
        this.salesQuantity = salesQuantity;
    }

    public Integer getSalesQuantity()
    {
        return salesQuantity;
    }
    public void setProfit(BigDecimal profit)
    {
        this.profit = profit;
    }

    public BigDecimal getProfit()
    {
        return profit;
    }
    public void setProfitRatio(BigDecimal profitRatio)
    {
        this.profitRatio = profitRatio;
    }

    public BigDecimal getProfitRatio()
    {
        return profitRatio;
    }
    public void setPurchasePrice(BigDecimal purchasePrice)
    {
        this.purchasePrice = purchasePrice;
    }

    public BigDecimal getPurchasePrice()
    {
        return purchasePrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("autoId", getAutoId())
            .append("categoryId", getCategoryId())
            .append("subclassId", getSubclassId())
            .append("categoryIdName", getCategoryIdName())
            .append("subclassIdName", getSubclassIdName())
            .append("sales", getSales())
            .append("salesQuantity", getSalesQuantity())
            .append("profit", getProfit())
            .append("profitRatio", getProfitRatio())
            .append("purchase_price", getPurchasePrice())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
